<?php
require('config.php');
		$time=date('Y-m-d');
		$sql="select * from `".$oto."_ads` where `adPositionId`='-5' and `adStartDate`<='$time' and `adEndDate`>='$time'";
		$result=$db->query($sql);
		while($row=$result->fetch_assoc()){
			$ads[]=$row;//将取得的所有数据赋值给person_info数组
		}
		echo json_encode($ads);
?>